]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: don't perform translation when target is met already
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 18 Feb 2013 19:17:29 +0000 (14:17 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 18 Feb 2013 19:18:57 +0000 (14:18 -0500)
Fixes a regression from ccb81919f79f9f684234deb8f6b1fcdaae3e7965

js/ui/overviewControls.js

index 39ddc78f6942318674d849fefa4b33adf0979112..df4d637af3989710da740a229ca7c32c50361899 100644 (file)
@@ -144,6 +144,9 @@ const SlidingControl = new Lang.Class({
             translationEnd = translation;
         }
 
+        if (this.actor.translation_x == translationEnd)
+            return;
+
         this.actor.translation_x = translationStart;
         Tweener.addTween(this.actor, { translation_x: translationEnd,
                                        time: SIDE_CONTROLS_ANIMATION_TIME,